﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RetailOnlineSite.Data;

namespace RetailOnlineSite
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [System.Web.Services.WebMethod]
        public static IList<RetailOnlineSite.Transfer.CategoryDTO> LoadCategory()
        {
            //return new List<RetailOnlineSite.Transfer.CategoryDTO>
            //{
            //    new RetailOnlineSite.Transfer.CategoryDTO { CategoryName = "Tổng hợp", SubCategoryCollection = new List<RetailOnlineSite.Transfer.SubCategoryDTO> {
            //        new RetailOnlineSite.Transfer.SubCategoryDTO { SubCategoryName = "Cha" , SubCategoryCollection = new List<RetailOnlineSite.Transfer.SubCategoryDTO> {
            //        new RetailOnlineSite.Transfer.SubCategoryDTO { SubCategoryName = "Con" },
            //        new RetailOnlineSite.Transfer.SubCategoryDTO { SubCategoryName = "Con 1" },
            //        new RetailOnlineSite.Transfer.SubCategoryDTO { SubCategoryName = "Con 2" },
            //        new RetailOnlineSite.Transfer.SubCategoryDTO { SubCategoryName = "Con 3" },
            //    }}
            //    }}
            //};
            ICategoryDataAccess dataAccess = new CategoryDataAccess();
            return new List<RetailOnlineSite.Transfer.CategoryDTO>(); // dataAccess.GetAll();
        }
    }
}
